'use strict';
var user = JSON.parse(localStorage.getItem('user_inof'));
// var go_url = "http://127.0.0.1:3000/auth.html";


//服务器转跳
var go_url = "http://app.quanminkang.com.cn/manager/auth.html";

if (user) {
    var is_suer_root = user.permissions;
} else {
    //转跳至登录页
    location.href = go_url;
}

angular.module('BlurAdmin', [
    'ngAnimate',
    'ui.bootstrap',
    'ui.sortable',
    'ui.router',
    'ngTouch',
    'toastr',
    'smart-table',
    "xeditable",
    'ui.slimscroll',
    'ngJsTree',
    'angular-progress-button-styles',

    // 插件
    'summernote',
    'angularQFileUpload',
    'BlurAdmin.theme',
    'BlurAdmin.pages',
    'angular-echarts'
]).config(['$stateProvider', '$urlRouterProvider', '$httpProvider', function($stateProvider, $urlRouterProvider, $httpProvider) {
    $httpProvider.interceptors.push('TokenInterceptor');

}]);